package com.ruoyi.safety.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; //添加
import com.ruoyi.safety.domain.SafetyPointRealTime;
import org.apache.ibatis.annotations.Param;

/**
 * 测点实时信息数据Mapper接口
 *
 * @author ruoyi
 * @date 2024-10-30
 */
public interface SafetyPointRealTimeMapper extends BaseMapper<SafetyPointRealTime> //修改
{
    /**
     * 查询测点实时信息数据
     *
     * @param pointCode 测点实时信息数据主键
     * @return 测点实时信息数据
     */
    public SafetyPointRealTime selectSafetyPointRealTimeByPointCode(String pointCode);

    /**
     * 查询测点实时信息数据列表
     *
     * @param safetyPointRealTime 测点实时信息数据
     * @return 测点实时信息数据集合
     */
    public List<SafetyPointRealTime> selectSafetyPointRealTimeList(SafetyPointRealTime safetyPointRealTime);

    /**
     * 新增测点实时信息数据
     *
     * @param safetyPointRealTime 测点实时信息数据
     * @return 结果
     */
    public int insertSafetyPointRealTime(SafetyPointRealTime safetyPointRealTime);

    /**
     * 修改测点实时信息数据
     *
     * @param safetyPointRealTime 测点实时信息数据
     * @return 结果
     */
    public int updateSafetyPointRealTime(SafetyPointRealTime safetyPointRealTime);

    /**
     * 删除测点实时信息数据
     *
     * @param pointCode 测点实时信息数据主键
     * @return 结果
     */
    public int deleteSafetyPointRealTimeByPointCode(String pointCode);

    /**
     * 批量删除测点实时信息数据
     *
     * @param pointCodes 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSafetyPointRealTimeByPointCodes(String[] pointCodes);

    void insertRealTimeBatch( List<SafetyPointRealTime> pointInfoRealTimeArrayList);

    void updateDataBatch(List<SafetyPointRealTime> pointInfoRealTimeArrayList);

    SafetyPointRealTime getDataBySensorType(String dictLabel);
}

